package xyz.pro5books.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.pro5books.pojo.TestTable;
import xyz.pro5books.service.TestService;

import java.util.List;

@RestController
@RequestMapping("/test")
@CrossOrigin
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping ("/getTest")
    public List<TestTable> getTest(){
        return testService.getTest();
    }
}



